import tushare as ts

ts.set_token('b2109fc6949181eb2f598eae02f4de44e028e7eb20ffc39503a7fd9e')
pro = ts.pro_api()

# 获取全部退市股票基础信息
df = pro.daily(ts_code="000001.SZ")
# print(df)
print(df['ts_code'][0])
print(float(df['close'][0]) + 1)

# # @Time : 2021-05-29 15:44
# # @Author : baldSun
# # @File : tushareTest.py
# # @Software: PyCharm
#
# import tushare as ts
#
# pro = ts.pro_api('b2109fc6949181eb2f598eae02f4de44e028e7eb20ffc39503a7fd9e')
#
# df = pro.daily(ts_code='000001.SZ',trade_date='20180810')
#
# if __name__ == '__main__':
#     stock = pro.daily(ts_code='000001.SZ', trade_date='20000710')
#     # if stock.empty:
#     print(stock)
#     print(str(stock.ts_code))
#
#     # print(pro.daily(ts_code='000001.SZ,600000.SH', start_date='20180701', end_date='20180718'))
